package pl.edu.pw.perg.compinfodb.dao;

import org.hibernate.Query;
import org.hibernate.Session;

import pl.edu.pw.perg.compinfodb.entities.Connector;

public class ConnectorDAO extends GenericSpringDAO<Connector> implements IConnectorDAO {

  @Override
  public void deleteAll() {
    Session s = getSession();
    Query sql = s.createSQLQuery("delete from internal_connections");
    sql.executeUpdate();
    Query q = s.createQuery("delete from Connector"); 
    q.executeUpdate();
  }
}
